// src/components/dayjs
import dayjs from 'dayjs';

export const setItem = (key, data) => {
  Object.keys(data).forEach(item => {
    if(item === 'date') {
      data[item] = JSON.stringify(data[item]).replace(/T.*|"/g, "")
    }
  })
  localStorage.setItem(key, JSON.stringify(data))
}


export default dayjs;
